package com.leyou.item.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/06 23:10
 * @description:
 */
@Data
@Table(name = "tb_spec_group")
public class SpecGroup {
	/*`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
			`cid` bigint(20) NOT NULL COMMENT '商品分类id，一个分类下有多个规格组',
			`name` varchar(32) NOT NULL COMMENT '规格组的名称',
			`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,*/
	@Id
	@KeySql(useGeneratedKeys = true)
	private Long id;
	private Long cid;
	private String name;
	private Date createTime;
	private Date updateTime;

}
